package a.f.n;

import a.c.d;
import a.d.f;
import a.d.w;
import a.f.o;
import a.f.zb;

import java.util.ArrayList;
import java.util.List;

abstract class db
{
  static final double a = 20.0D;
  static final int b = 0;
  static final int c = 1;
  static final int d = 2;
  static final int e = 3;
  protected List g = new ArrayList();
  protected v h;
  
  protected db(v paramv)
  {
    this.h = paramv;
  }
  
  void a(c_ paramc_)
  {
    if (!k.n) {
      if (!paramc_.a()) {
        throw new IllegalArgumentException("RoutingBound is not complete " + paramc_);
      }
    }
    this.g.add(paramc_);
  }
  
  c_ a(int paramInt)
  {
    return (c_)this.g.get(paramInt);
  }
  
  private c_ a(int paramInt, boolean paramBoolean)
  {
    c_ localc_ = a(paramInt);
    if (paramBoolean) {
      localc_ = localc_.a(20.0D);
    }
    return localc_;
  }
  
  int a()
  {
    return this.g.size();
  }
  
  public f b(int paramInt)
  {
    return b(a(paramInt));
  }
  
  private f b(c_ paramc_)
  {
    return new f(paramc_.j(), d(), c());
  }
  
  public f c(int paramInt)
  {
    return c(a(paramInt));
  }
  
  private f c(c_ paramc_)
  {
    return new f(d(), paramc_.h(), c());
  }
  
  void d(int paramInt)
  {
    d(a(paramInt, false));
  }
  
  void b(int paramInt, boolean paramBoolean)
  {
    d(a(paramInt, paramBoolean));
  }
  
  void d(c_ paramc_)
  {
    b(paramc_.e());
  }
  
  void e(int paramInt)
  {
    f(a(paramInt, false));
  }
  
  void c(int paramInt, boolean paramBoolean)
  {
    f(a(paramInt, paramBoolean));
  }
  
  void f(c_ paramc_)
  {
    b(paramc_.f());
  }
  
  void f(int paramInt)
  {
    h(a(paramInt, false));
  }
  
  void d(int paramInt, boolean paramBoolean)
  {
    h(a(paramInt, paramBoolean));
  }
  
  void h(c_ paramc_)
  {
    a(paramc_.j());
  }
  
  void g(int paramInt)
  {
    i(a(paramInt, false));
  }
  
  void e(int paramInt, boolean paramBoolean)
  {
    i(a(paramInt, paramBoolean));
  }
  
  void i(c_ paramc_)
  {
    a(paramc_.h());
  }
  
  private void a(double paramDouble)
  {
    this.h.a(c(), paramDouble);
  }
  
  private void b(double paramDouble)
  {
    this.h.a(paramDouble, d());
  }
  
  protected double c()
  {
    return this.h.b();
  }
  
  protected double d()
  {
    return this.h.c();
  }
  
  static class b_
    extends db
  {
    b_()
    {
      super();
    }
    
    b_(v paramv1, v paramv2)
    {
      super();
      db.c_ localc_ = new db.c_();
      localc_.a(new w(paramv1.h(), paramv1.i()));
      localc_.a(new w(paramv1.g(), paramv1.d()));
      a(localc_);
      localc_ = new db.c_();
      localc_.a(new w(paramv2.h(), paramv2.i()));
      localc_.a(new w(paramv2.g(), paramv2.d()));
      a(localc_);
    }
  }
  
  static class a_
    extends db
  {
    private w f;
    private zb i;
    private boolean j;
    
    a_(k.b_ paramb_, o paramo, d paramd, v paramv)
    {
      super();
      this.i = paramo.e(paramd);
      this.i.b();
      this.f = k.a(paramb_, paramo.r(paramd));
      db.c_ localc_ = new db.c_();
      localc_.a(new w(this.f.a(), this.f.b()));
      a(localc_);
    }
    
    w b()
    {
      return this.f;
    }
    
    void e()
    {
      if (!k.n)
      {
        if (this.j) {
          throw new IllegalStateException("TargetPoints already have beend appended");
        }
        this.h.n();
        this.h.m().a(this.i);
      }
      this.j = true;
    }
    
    public void f()
    {
      this.h.a(this.f.a(), this.f.b());
    }
    
    public void h()
    {
      f();
      e();
      this.h.l();
      this.h.n();
    }
  }
  
  static class c_
  {
    private w a;
    private w c;
    private double e;
    
    c_() {}
    
    c_(c_ paramc_, double paramDouble)
    {
      this.e = paramDouble;
      this.a = paramc_.a;
      this.c = paramc_.c;
    }
    
    c_(w paramw1, w paramw2)
    {
      this.a = paramw1;
      this.c = paramw2;
    }
    
    c_(w paramw)
    {
      this.a = paramw;
    }
    
    void a(w paramw)
    {
      boolean bool = k.n;
      if (!bool) {
        if (this.a == null)
        {
          this.a = paramw;
          return;
        }
      }
      if (!bool)
      {
        if (this.a.equals(paramw)) {
          return;
        }
        if (bool) {}
      }
      else if (this.c != null)
      {
        throw new IllegalStateException("RoutingBound still has two points assigned");
      }
      this.c = paramw;
    }
    
    c_ a(double paramDouble)
    {
      return new c_(this, paramDouble);
    }
    
    boolean a()
    {
      return this.a != null;
    }
    
    double b()
    {
      return this.e;
    }
    
    double d()
    {
      return e() - f();
    }
    
    double e()
    {
      if (!k.n) {
        if (this.c == null) {
          return this.a.a() + this.e;
        }
      }
      return Math.max(this.a.a() + this.e, this.c.a() + this.e);
    }
    
    double f()
    {
      if (!k.n) {
        if (this.c == null) {
          return this.a.a() - this.e;
        }
      }
      return Math.min(this.a.a() - this.e, this.c.a() - this.e);
    }
    
    double g()
    {
      return h() - j();
    }
    
    double h()
    {
      if (!k.n) {
        if (this.c == null) {
          return this.a.b() + this.e;
        }
      }
      return Math.max(this.a.b() + this.e, this.c.b() + this.e);
    }
    
    double j()
    {
      if (!k.n) {
        if (this.c == null) {
          return this.a.b() - this.e;
        }
      }
      return Math.min(this.a.b() - this.e, this.c.b() - this.e);
    }
    
    w k()
    {
      return this.c;
    }
    
    w l()
    {
      return this.a;
    }
    
    public boolean equals(Object paramObject)
    {
      boolean bool = k.n;
      if (!bool) {
        if (this == paramObject) {
          return true;
        }
      }
      if (paramObject != null)
      {
        if (bool) {
          break label37;
        }
        if (getClass() == paramObject.getClass()) {}
      }
      else
      {
        return false;
      }
      label37:
      c_ localc_ = (c_)paramObject;
      if (!bool) {
        if (this.a != null)
        {
          if (bool) {
            break label90;
          }
          if (this.a.equals(localc_.a)) {
            break label86;
          }
          break label84;
        }
      }
      if (!bool) {
        if (localc_.a != null) {
          label84:
          return false;
        }
      }
      label86:
      label90:
      if ((bool) || ((this.c == null) || (!bool))) {
        if ((!this.c.equals(localc_.c)) && ((goto 125) || (localc_.c != null))) {
          return false;
        }
      }
      return true;
    }
    
    public int hashCode()
    {
      boolean bool = k.n;
      int i = (bool) || (this.a != null) ? this.a.hashCode() : 0;
      i = 29 * i + ((bool) || (this.c != null) ? this.c.hashCode() : 0);
      return i;
    }
    
    public String toString()
    {
      return "RoutingBound{point0=" + this.a + ", point1=" + this.c + " | width=" + d() + ", height=" + g() + "}";
    }
  }
}
// INTERNAL ERROR //


/* Location:           E:\idea\

 * Qualified Name:     a.f.n.db

 * JD-Core Version:    0.7.0.1

 */